columnviewtitle: Prevent header clicks from propagating
authorCorey Berla <corey@berla.me>
Wed, 7 Dec 2022 20:25:09 +0000 (10:25 -1000)
committerCorey Berla <corey@berla.me>
Wed, 7 Dec 2022 20:25:09 +0000 (10:25 -1000)
commit33e77747433f3d9ef474227e5dd01426476d8fe1
tree995e6a3151a0153591ec191de992aa6e8f0b34f4
parenta9c9678e1f617755368f16424a03ae1f2d2ced4e
columnviewtitle: Prevent header clicks from propagating

The header in GtkColumnView has multiple event handlers
there is a ::pressed handler in GtkColumnView for
resizing the columns in CAPTURE as well as a motion
and drag controller.  The ::release handler is in
GtkColumnViewTitle.   We can't claim the event in the
existing handlers because then the ::release handler will
never get called.  Currently, however, all clicks get propagated
to the ColumnView from the header which can be problematic.
Since we don't usually want the clicks from the header
handled on the view, claim it in the BUBBLE phase.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/5425
gtk/gtkcolumnviewtitle.c